package com.sunny.design.facade;

/**
 * @author Sunny
 * @date 2020/3/5
 */
public class SendMessage {
    private String topic;

    public SendMessage(String topic) {
        this.topic = topic;
    }

    public void send(User user) {
        System.out.println("发送到主题: " + topic + ", 发放优惠券至用户: " + user.getUserName());
    }
}
